using System.Collections.Generic;
using MvcCms.Data.Entities;

namespace MvcCms.Data.Code
{
    public class EntitySearchRepository : ISearchRepository
    {
        #region ISearchRepository Members

        public IEnumerable<DTOSearchResult> Search(string term, bool usefulltext, Portal portal)
        {
            var se = new Search();
            IEnumerable<DTOSearchResult> results = se.GetResults(term, usefulltext, portal);
            return results;
        }

        #endregion
    }
}